
package com.wk.code.wkserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 权限实体
 *
 * @author wq
 * @date 2021-07-12 14:42:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 0菜单1按钮
     */
    private Integer type;
    /**
     * 名称
     */
    private String title;
    /**
     * 路径
     */
    private String path;
    /**
     * 图标
     */
    private String icon;
    /**
     * 权限
     */
    private String permission;
    /**
     * 父级ID
     */
    private Integer parentId;
    /**
     * 创建日期
     */
    private Date createTime;
    /**
     * 排序
     */
    private Integer sort;

    @TableLogic
    private Integer isDeleted;

}
